<% content_for :content do %>
	<div class="list_banner">
		<% if @first_article.present? %>
	 	<a href="<%= article_path(@first_article) %>">
	 		<span><h1><%= @first_article.title %></h1></span>
	 		<%= image_tag @first_article.top_cover.url(:small), alt: @first_article.title if @first_article.top_cover %>
	 	</a>
	 	<p>
	 		<%= @first_article.description %>
	 	</p>
	 	<% end %>
	</div>

	<div class="list_body">
		<% @articles.each do |article| %>
		<div class="list">
			<%  if article.cover %>
				<a href="<%= article_path(article) %>">
				<%= image_tag article.cover.url(:small), alt: article.title %>
				</a>
			<% end %>
			<div class="l_c">
				<a href="<%= article_path(article) %>"><span><h2><%= article.title %></h2></span></a><br/>
			 	<p><%= article.description %></p>
			</div>
	 </div>
	 <% end if @articles %>
	 <%= paginate @articles %>
	</div>
<% end %>